#bookmarks-modal {
    align-items: center;
    justify-content: center;
}

.bookmarks-layout .modal-body {
    display: flex;
    gap: 20px;
    height: 500px;
    width: 80vw;
    padding: 0;
}

.bookmarks-layout {
    max-width: 90%;
    min-width: 60%;
}

.bookmarks-sidebar {
    width: 240px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 16px;
}

.bookmarks-tree {
    font-size: 14px;
}

.bookmarks-tree-item {
    margin-bottom: 4px;
}

.bookmarks-tree-item .folder-content {
    margin-left: 20px;
}

.folder-header {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.folder-header:hover {
    background-color: var(--hover-bg);
}

.folder-header.active {
    background-color: var(--primary);
    color: white;
}

.folder-icon {
    margin-right: 8px;
    transition: transform 0.2s;
}

.folder-header.expanded .folder-icon {
    transform: rotate(90deg);
}

.bookmarks-main {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bookmarks-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.bookmark-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.bookmark-item:hover {
    background: var(--hover-bg);
}

.bookmark-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 4px;
}

.bookmark-info {
    flex: 1;
    min-width: 0;
}

.bookmark-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-url {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.bookmark-actions button {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bookmark-actions button:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}
.bookmark-actions button.import-folder-btn {
    color: var(--foreground);
    border-color: var(--gray-900);
}
.bookmark-actions button.import-btn {
    color: var(--foreground);
    border-color: var(--gray-300);
}

.bookmark-actions button.import-btn:hover, button.import-folder-btn:hover  {
    background: var(--primary);
    color: white;
}